package com.mobilad.bean;

import java.io.Serializable;
import java.util.Locale;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

import org.springframework.context.annotation.Scope;

import com.sun.faces.context.flash.ELFlash;
 
@ManagedBean(name="language")
@SessionScoped
public class LanguageBean extends MasterBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	
	public void setLanguage(){
		Locale localLanguage = new Locale(countryCode);
		FacesContext.getCurrentInstance().getViewRoot().setLocale(localLanguage);
	}
	
}
